package com.panda.controller.user;

import com.panda.service.UserService;
import com.panda.utils.RespondResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("backstage/user")
public class UserController {

    @Autowired
    private UserService userService;

    @GetMapping("registerStatistic")
    public RespondResult registerStatistic(){
        return userService.registerCount();
    }
}
